<%@page import="com.bci.common.TicketPrinter"%>
<%@page import="com.bci.common.SafeUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String iPrintStr = "";
	java.util.Date date = new java.util.Date();
	if (request.getParameter("order") != null) {
		iPrintStr = SafeUtil.TranEncodeTOUTF(request.getParameter("order"));
		TicketPrinter tic = new TicketPrinter(iPrintStr);
		iPrintStr=iPrintStr.replaceAll("\\|", "<br/>");
	} else {
	}
%>
<html>
<head>
<meta charset="utf-8" />
<title>店内打印</title>
<script type="text/javascript">
function closeprintpage()
{
	window.open('', '_self', ''); //bug fix
	window.close();
	}
</script>
<body>
	<div>
		当前系统时间:<%=date%></div>
	<div>打印内容如下：</div>
	<div  style="border:1px #000 solid">
	<%=iPrintStr%>
	</div>
	
	<div > 
	</br>
	<input name="关闭页面" type="button" id="关闭页面" value="关闭页面" onclick="closeprintpage();" />
	</div>
	 
</body>
</html>